
flist      := 
top        := 
GUI        := 
RUN_ARGS   := 

lib_name   := INCA_$(top)_lib

V          := @

help:
	$(V) echo "make [build_ius|run_ius] flist={path_to_flist} top={top_name}"

build_ius:
	irun -64bit -elaborate -c -sv +access+rwc -nclibdirname $(lib_name) -f $(flist)

run_ius: build_ius
	irun -64bit -R -nclibdirname $(lib_name) -f $(flist)  $(GUI) $(RUN_ARG)

clean:
	rm irun.* INCA*lib -r
